projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbe7ba5
)
Fix a memory leak in GtkAccelGroup
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 7 Apr 2009 23:09:28 +0000
(19:09 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 7 Apr 2009 23:11:33 +0000
(19:11 -0400)
Unref closures in accel group finalization (#577824).
gtk/gtkaccelgroup.c
patch
|
blob
|
history
diff --git
a/gtk/gtkaccelgroup.c
b/gtk/gtkaccelgroup.c
index 32c76db8e37b3cce2e48f9acf901bee6109ae0e8..b26fd63a0501b88677f94649b86f209c49127f81 100644
(file)
--- a/
gtk/gtkaccelgroup.c
+++ b/
gtk/gtkaccelgroup.c
@@
-165,6
+165,9
@@
gtk_accel_group_finalize (GObject *object)
_gtk_accel_map_remove_group (accel_path, accel_group);
}
g_closure_remove_invalidate_notifier (entry->closure, accel_group, accel_closure_invalidate);
+
+ /* remove quick_accel_add() refcount */
+ g_closure_unref (entry->closure);
}
g_free (accel_group->priv_accels);